﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ForgetPassword.aspx.cs"
    Inherits="Framework.LoginAdmin.ForgetPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Lấy lại mật khẩu</title>
    <link href="/LoginAdmin/Css/Default.css" rel="stylesheet" type="text/css" />
    <script src="/LoginAdmin/Js/jquery-1.7.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(function () {
                setInterval(KeepSessionAlive, 60000);
            });
            function KeepSessionAlive() {
                $.post('/Resources/KeepSessionAlive.ashx', null, function () {
                });
            }
        });
    </script>
</head>
<body class="myBody">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= form1.ClientID %>").attr("action", window.location.pathname + window.location.search);
        });
    </script>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <center>
                    <div id="header">
                    </div>
                    <div id="frame">
                        <div id="layout">
                            <div id="loginframe">
                                <div id="caption">
                                    Lấy lại mật khẩu</div>
                                <div id="content">
                                    <table cellpadding="5" cellspacing="0" class="Login" style="margin-top: 30px;">
                                        <tr>
                                            <td align="right" width="120px">
                                                Tên đăng nhập:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtUsername" runat="server" Width="180"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập tên đăng nhập để lấy lại mật khẩu"
                                                    ControlToValidate="txtUsername" Display="None" ValidationGroup="FogetPass"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" width="120px">
                                                Email:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtEmail" runat="server" Width="180"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Nhập Email để lấy lại mật khẩu"
                                                    ControlToValidate="txtEmail" Display="None" ValidationGroup="FogetPass"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                    ValidationGroup="FogetPass" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email sai định dạng"
                                                    Display="None"></asp:RegularExpressionValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="1" style="text-align: center">
                                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                                    <ProgressTemplate>
                                                        <img src="Images/indicator.gif" align="middle" alt="Loading..." />
                                                        <span style="font-family: Verdana; font-size: 11px; font-weight: bold">Loading ... &nbsp;</span>
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnSend" runat="server" Text="Lấy lại mật khẩu" ValidationGroup="FogetPass"
                                                    OnClick="btnSend_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <a href="Default.aspx" class="ForgetPassword">Click vào đây để đăng nhập vào hệ thống</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td align="right" style="text-align: left; color: Red">
                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
                                                    ValidationGroup="FogetPass" CssClass="validate" />
                                                <span id="lblMsg" runat="server"></span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="footer">
                        Copyright 2012 DigiSky. All right reversed.</div>
                </center>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
